<extend name="Public/base"/>
    <block name="title">
       详情页
    </block>
	<block name="body">
	<!-- header end -->
	<div class="space-custom"></div>
	<!-- breadcrumb start -->
	<div class="breadcrumb-area">
		<div class="container">
			<ol class="breadcrumb">
                <li><a href="#"><i class="fa fa-home"></i></a></li>
                <foreach name="res" item="v">
                <li><a href="#">Sofa</a></li>
                <li class="active">{$v.title}</li>
                </foreach>
			</ol>			
		</div>
	</div>
	<!-- breadcrumb end -->
	<!-- shop-area start -->
	<div class="shop-area">
		<div class="container">
			<div class="row">
				<div class="col-xs-12 col-sm-6 col-md-5">					
					<div class="product-zoom">
						<!-- Tab panes -->
						<div class="tab-content">
							<div class="tab-pane active" id="home">
								<div class="pro-large-img">
									<img src="__ROOT__/Uploads/{$dres.pic}" class="bpic" alt="" />
									<a class="popup-link" href="img/product/1.jpg">View larger <i class="fa fa-search-plus" aria-hidden="true"></i></a>
								</div>
							</div>
							<foreach name="ires" item="v">
							<div class="tab-pane" id="{$v.id}">
								<div class="pro-large-img">
									<img src="__ROOT__/Uploads/{$v.file}" alt="" />
									<a class="popup-link" href="img/product/2.jpg">View larger <i class="fa fa-search-plus" aria-hidden="true"></i></a>
								</div>							
							</div>
							</foreach>
						</div>
						<!-- Nav tabs -->
						<ul class="details-tab">
							<foreach name="ires" item="v">
								<li><a href="{$v.id}" data-toggle="tab"><img src="__ROOT__/Uploads/{$v.file}" alt="" class="spic" /></a></li>
							</foreach>
						</ul>

					</div>
				</div>
				<div class="col-xs-12 col-sm-6 col-md-7">
				    <foreach name="res" item="v">
					<div class="product-details">
						<h2 class="pro-d-title">{$v.title}</h2>
						<div class="price-box">
							<span class="price product-price">￥{$v.price}</span>
							<span class="old-price product-price">￥{$v.price}</span>
						</div>
						<div class="short-desc">
							<p>{$v.dec}</p>
						</div>
						<div class="box-quantity">
						<if condition="is_login()">
							<form action="#" class="tishi">
								<label>数量</label>
								<input type="hidden" class="user" name="user" value="{:get_username()}">	
								<input class=count type="number" value="1"/>
								<input class=addid type="hidden" value="{$dres.id}"/>
								<button class="shoppcart">添加到购物车</button>
							</form>
						<else/>
						    <form action="#" class="tishi">
								<label>数量</label>
								<input type="hidden" class="user" name="user" value="{:get_username()}">	
								<input class=count type="number" value="1"/>
								<input class=addid type="hidden" value="{$dres.id}"/>
								<button class="uck2">添加到购物车</button>
							</form>
						</if>
						</div>
						<div class="usefull_link_block">
							<ul>
								<li><a href="#"><i class="fa fa-envelope-o"></i>分享给朋友</a></li>
								<li><a href="#"><i class="fa fa-print"></i>打印</a></li>
								<li><a href="#"><i class="fa fa-heart-o"></i>加入收藏</a></li>
							</ul>
						</div>
						<div class="select-size">
							<form action="#">
								<label>{$kres[0]['kname']}</label>
								<select>
								<foreach name="vres" item="v">
									<option value="">{$v.vname}</option>
								</foreach>
								</select>
							</form>
						</div>
						<div class="color-list">
							<a href="#"></a>
							<a href="#"></a>
						</div>
						<div class="share-icon">
							<a class="twitter" href="#"><i class="fa fa-facebook"></i>  facebook</a>
							<a class="facebook" href="#"><i class="fa fa-twitter"></i>  twitter</a>
							<a class="google" href="#"><i class="fa fa-google-plus"></i>  linkedin</a>
							<a class="pinterest" href="#"><i class="fa fa-pinterest"></i>  facebook</a>
						</div>
					</div>
					</foreach>
				</div>
			</div>
		</div>
	</div>
	<!-- shop-area end -->
	<!-- pro-info-area start -->
	<div class="pro-info-area ptb-80">
		<div class="container">
			<div class="pro-info-box">
				<!-- Nav tabs -->
				<ul class="pro-info-tab" role="tablist">
					<li class="active"><a href="#home3" data-toggle="tab">更多信息</a></li>
					<li><a href="#profile3" data-toggle="tab">数据表</a></li>
					<li><a href="#messages3" data-toggle="tab">评论</a></li>
				</ul>
				<!-- Tab panes -->
				<div class="tab-content">
					<div class="tab-pane active" id="home3">
						<div class="pro-desc">
							<p>Fashion has been creating well-designed collections since 2010. The brand offers feminine designs delivering stylish separates and statement dresses which have since evolved into a full ready-to-wear collection in which every item is a vital part of a woman's wardrobe. The result? Cool, easy, chic looks with youthful elegance and unmistakable signature style. All the beautiful pieces are made in Italy and manufactured with the greatest attention. Now Fashion extends to a range of accessories including shoes, hats, belts and more!</p>
						</div>
					</div>
					<div class="tab-pane" id="profile3">
						<div class="pro-desc">
							<table class="table-data-sheet">
								<tbody>
									<tr class="odd">
										<td>Compositions</td>
										<td>Cotton</td>
									</tr>
									<tr class="even">
										<td>Styles</td>
										<td>Casual</td>
									</tr>
									<tr class="odd">
										<td>Properties</td>
										<td>Short Sleeve</td>
									</tr>
								</tbody>
							</table>						
						</div>
					</div>
					<div class="tab-pane" id="messages3">
						<div class="pro-desc">
							<a href="#">Be the first to write your review!</a>
						</div>
					</div>
				</div>		
			</div>
		</div>
	</div>
	<!-- pro-info-area end -->
	<!-- best-sell-area start -->
	<div class="best-sell-area">
		<div class="container">
			<div class="row">
				<div class="section-title text-center mb-50">
					<h2>配件</h2>
				</div>
			</div>		
			<div class="row">
				<div class="product-carousel">
					<div class="col-md-12">
						<div class="product-wrapper mb-40 mrg-nn-xs">
							<div class="product-img">
								<a href="#"><img src="__ROOT__/Application/Home/Common/img/product/4.jpg" alt="" /></a>
								<span class="new-label">New</span>
								<div class="product-action">
									<a href="#"><i class="pe-7s-cart"></i></a>
									<a href="#"><i class="pe-7s-like"></i></a>
									<a href="#"><i class="pe-7s-folder"></i></a>
									<a href="#" data-toggle="modal" data-target="#productModal"><i class="pe-7s-look"></i></a>
								</div>
							</div>
							<div class="product-content">
								<div class="pro-title">
									<h3><a href="product-details.html">Cras Neque Metus</a></h3>
								</div>
								<div class="price-reviews">
									<div class="price-box">
										<span class="price product-price">$262.00</span>
										<span class="old-price product-price">$262.00</span>
									</div>
									<div class="pro-rating">
										<a href="#"><i class="fa fa-star-o"></i></a>
										<a href="#"><i class="fa fa-star-o"></i></a>
										<a href="#"><i class="fa fa-star-o"></i></a>
										<a href="#"><i class="fa fa-star-o"></i></a>
										<a href="#"><i class="fa fa-star-o"></i></a>
									</div>
								</div>
							</div>
						</div>
					</div>									
					<div class="col-md-12">
						<div class="product-wrapper mb-40 mrg-nn-xs">
							<div class="product-img">
								<a href="#"><img src="__ROOT__/Application/Home/Common/img/product/12.jpg" alt="" /></a>
								<span class="new-label">New</span>
								<div class="product-action">
									<a href="#"><i class="pe-7s-cart"></i></a>
									<a href="#"><i class="pe-7s-like"></i></a>
									<a href="#"><i class="pe-7s-folder"></i></a>
									<a href="#" data-toggle="modal" data-target="#productModal"><i class="pe-7s-look"></i></a>
								</div>
							</div>
							<div class="product-content">
								<div class="pro-title">
									<h3><a href="product-details.html">Cras Neque Metus</a></h3>
								</div>
								<div class="price-reviews">
									<div class="price-box">
										<span class="price product-price">$262.00</span>
										<span class="old-price product-price">$262.00</span>
									</div>
									<div class="pro-rating">
										<a href="#"><i class="fa fa-star-o"></i></a>
										<a href="#"><i class="fa fa-star-o"></i></a>
										<a href="#"><i class="fa fa-star-o"></i></a>
										<a href="#"><i class="fa fa-star-o"></i></a>
										<a href="#"><i class="fa fa-star-o"></i></a>
									</div>
								</div>
							</div>
						</div>
					</div>
					<div class="col-md-12">
						<div class="product-wrapper mb-40 mrg-nn-xs">
							<div class="product-img">
								<a href="#"><img src="__ROOT__/Application/Home/Common/img/product/3.jpg" alt="" /></a>
								<span class="new-label">New</span>
								<div class="product-action">
									<a href="#"><i class="pe-7s-cart"></i></a>
									<a href="#"><i class="pe-7s-like"></i></a>
									<a href="#"><i class="pe-7s-folder"></i></a>
									<a href="#" data-toggle="modal" data-target="#productModal"><i class="pe-7s-look"></i></a>
								</div>
							</div>
							<div class="product-content">
								<div class="pro-title">
									<h3><a href="product-details.html">Cras Neque Metus</a></h3>
								</div>
								<div class="price-reviews">
									<div class="price-box">
										<span class="price product-price">$262.00</span>
										<span class="old-price product-price">$262.00</span>
									</div>
									<div class="pro-rating">
										<a href="#"><i class="fa fa-star-o"></i></a>
										<a href="#"><i class="fa fa-star-o"></i></a>
										<a href="#"><i class="fa fa-star-o"></i></a>
										<a href="#"><i class="fa fa-star-o"></i></a>
										<a href="#"><i class="fa fa-star-o"></i></a>
									</div>
								</div>
							</div>
						</div>
					</div>
					<div class="col-md-12">
						<div class="product-wrapper mb-40 mrg-nn-xs">
							<div class="product-img">
								<a href="#"><img src="__ROOT__/Application/Home/Common/img/product/5.jpg" alt="" /></a>
								<span class="new-label">New</span>
								<div class="product-action">
									<a href="#"><i class="pe-7s-cart"></i></a>
									<a href="#"><i class="pe-7s-like"></i></a>
									<a href="#"><i class="pe-7s-folder"></i></a>
									<a href="#" data-toggle="modal" data-target="#productModal"><i class="pe-7s-look"></i></a>
								</div>
							</div>
							<div class="product-content">
								<div class="pro-title">
									<h3><a href="product-details.html">Cras Neque Metus</a></h3>
								</div>
								<div class="price-reviews">
									<div class="price-box">
										<span class="price product-price">$262.00</span>
										<span class="old-price product-price">$262.00</span>
									</div>
									<div class="pro-rating">
										<a href="#"><i class="fa fa-star-o"></i></a>
										<a href="#"><i class="fa fa-star-o"></i></a>
										<a href="#"><i class="fa fa-star-o"></i></a>
										<a href="#"><i class="fa fa-star-o"></i></a>
										<a href="#"><i class="fa fa-star-o"></i></a>
									</div>
								</div>
							</div>
						</div>
					</div>
					<div class="col-md-12">
						<div class="product-wrapper mb-40 mrg-nn-xs">
							<div class="product-img">
								<a href="#"><img src="__ROOT__/Application/Home/Common/img/product/5.jpg" alt="" /></a>
								<span class="new-label">New</span>
								<div class="product-action">
									<a href="#"><i class="pe-7s-cart"></i></a>
									<a href="#"><i class="pe-7s-like"></i></a>
									<a href="#"><i class="pe-7s-folder"></i></a>
									<a href="#" data-toggle="modal" data-target="#productModal"><i class="pe-7s-look"></i></a>
								</div>
							</div>
							<div class="product-content">
								<div class="pro-title">
									<h3><a href="product-details.html">Cras Neque Metus</a></h3>
								</div>
								<div class="price-reviews">
									<div class="price-box">
										<span class="price product-price">$262.00</span>
										<span class="old-price product-price">$262.00</span>
									</div>
									<div class="pro-rating">
										<a href="#"><i class="fa fa-star-o"></i></a>
										<a href="#"><i class="fa fa-star-o"></i></a>
										<a href="#"><i class="fa fa-star-o"></i></a>
										<a href="#"><i class="fa fa-star-o"></i></a>
										<a href="#"><i class="fa fa-star-o"></i></a>
									</div>
								</div>
							</div>
						</div>
					</div>
					<div class="col-md-12">
						<div class="product-wrapper mb-40 mrg-nn-xs">
							<div class="product-img">
								<a href="#"><img src="__ROOT__/Application/Home/Common/img/product/6.jpg" alt="" /></a>
								<span class="new-label">New</span>
								<div class="product-action">
									<a href="#"><i class="pe-7s-cart"></i></a>
									<a href="#"><i class="pe-7s-like"></i></a>
									<a href="#"><i class="pe-7s-folder"></i></a>
									<a href="#" data-toggle="modal" data-target="#productModal"><i class="pe-7s-look"></i></a>
								</div>
							</div>
							<div class="product-content">
								<div class="pro-title">
									<h3><a href="product-details.html">Cras Neque Metus</a></h3>
								</div>
								<div class="price-reviews">
									<div class="price-box">
										<span class="price product-price">$262.00</span>
										<span class="old-price product-price">$262.00</span>
									</div>
									<div class="pro-rating">
										<a href="#"><i class="fa fa-star-o"></i></a>
										<a href="#"><i class="fa fa-star-o"></i></a>
										<a href="#"><i class="fa fa-star-o"></i></a>
										<a href="#"><i class="fa fa-star-o"></i></a>
										<a href="#"><i class="fa fa-star-o"></i></a>
									</div>
								</div>
							</div>
						</div>
					</div>
					<div class="col-md-12">
						<div class="product-wrapper mb-40 mrg-nn-xs">
							<div class="product-img">
								<a href="#"><img src="__ROOT__/Application/Home/Common/img/product/7.jpg" alt="" /></a>
								<span class="new-label">New</span>
								<div class="product-action">
									<a href="#"><i class="pe-7s-cart"></i></a>
									<a href="#"><i class="pe-7s-like"></i></a>
									<a href="#"><i class="pe-7s-folder"></i></a>
									<a href="#" data-toggle="modal" data-target="#productModal"><i class="pe-7s-look"></i></a>
								</div>
							</div>
							<div class="product-content">
								<div class="pro-title">
									<h3><a href="product-details.html">Cras Neque Metus</a></h3>
								</div>
								<div class="price-reviews">
									<div class="price-box">
										<span class="price product-price">$262.00</span>
										<span class="old-price product-price">$262.00</span>
									</div>
									<div class="pro-rating">
										<a href="#"><i class="fa fa-star-o"></i></a>
										<a href="#"><i class="fa fa-star-o"></i></a>
										<a href="#"><i class="fa fa-star-o"></i></a>
										<a href="#"><i class="fa fa-star-o"></i></a>
										<a href="#"><i class="fa fa-star-o"></i></a>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>						
			</div>
		</div>
	</div>
	<!-- best-sell-area end -->	
	<!-- best-sell-area start -->
	<div class="best-sell-area ptb-60">
		<div class="container">
			<div class="row">
				<div class="section-title text-center mb-50">
					<h2>同类产品中的其他类似产品:</h2>
				</div>
			</div>		
			<div class="row">
				<div class="product-carousel">
					<div class="col-md-12">
						<div class="product-wrapper mb-40 mrg-nn-xs">
							<div class="product-img">
								<a href="#"><img src="__ROOT__/Application/Home/Common/img/product/1.jpg" alt="" /></a>
								<span class="new-label">New</span>
								<div class="product-action">
									<a href="#"><i class="pe-7s-cart"></i></a>
									<a href="#"><i class="pe-7s-like"></i></a>
									<a href="#"><i class="pe-7s-folder"></i></a>
									<a href="#" data-toggle="modal" data-target="#productModal"><i class="pe-7s-look"></i></a>
								</div>
							</div>
							<div class="product-content">
								<div class="pro-title">
									<h3><a href="product-details.html">Cras Neque Metus</a></h3>
								</div>
								<div class="price-reviews">
									<div class="price-box">
										<span class="price product-price">$262.00</span>
										<span class="old-price product-price">$262.00</span>
									</div>
									<div class="pro-rating">
										<a href="#"><i class="fa fa-star-o"></i></a>
										<a href="#"><i class="fa fa-star-o"></i></a>
										<a href="#"><i class="fa fa-star-o"></i></a>
										<a href="#"><i class="fa fa-star-o"></i></a>
										<a href="#"><i class="fa fa-star-o"></i></a>
									</div>
								</div>
							</div>
						</div>
					</div>									
					<div class="col-md-12">
						<div class="product-wrapper mb-40 mrg-nn-xs">
							<div class="product-img">
								<a href="#"><img src="__ROOT__/Application/Home/Common/img/product/2.jpg" alt="" /></a>
								<span class="new-label">New</span>
								<div class="product-action">
									<a href="#"><i class="pe-7s-cart"></i></a>
									<a href="#"><i class="pe-7s-like"></i></a>
									<a href="#"><i class="pe-7s-folder"></i></a>
									<a href="#" data-toggle="modal" data-target="#productModal"><i class="pe-7s-look"></i></a>
								</div>
							</div>
							<div class="product-content">
								<div class="pro-title">
									<h3><a href="product-details.html">Cras Neque Metus</a></h3>
								</div>
								<div class="price-reviews">
									<div class="price-box">
										<span class="price product-price">$262.00</span>
										<span class="old-price product-price">$262.00</span>
									</div>
									<div class="pro-rating">
										<a href="#"><i class="fa fa-star-o"></i></a>
										<a href="#"><i class="fa fa-star-o"></i></a>
										<a href="#"><i class="fa fa-star-o"></i></a>
										<a href="#"><i class="fa fa-star-o"></i></a>
										<a href="#"><i class="fa fa-star-o"></i></a>
									</div>
								</div>
							</div>
						</div>
					</div>
					<div class="col-md-12">
						<div class="product-wrapper mb-40 mrg-nn-xs">
							<div class="product-img">
								<a href="#"><img src="__ROOT__/Application/Home/Common/img/product/9.jpg" alt="" /></a>
								<span class="new-label">New</span>
								<div class="product-action">
									<a href="#"><i class="pe-7s-cart"></i></a>
									<a href="#"><i class="pe-7s-like"></i></a>
									<a href="#"><i class="pe-7s-folder"></i></a>
									<a href="#" data-toggle="modal" data-target="#productModal"><i class="pe-7s-look"></i></a>
								</div>
							</div>
							<div class="product-content">
								<div class="pro-title">
									<h3><a href="product-details.html">Cras Neque Metus</a></h3>
								</div>
								<div class="price-reviews">
									<div class="price-box">
										<span class="price product-price">$262.00</span>
										<span class="old-price product-price">$262.00</span>
									</div>
									<div class="pro-rating">
										<a href="#"><i class="fa fa-star-o"></i></a>
										<a href="#"><i class="fa fa-star-o"></i></a>
										<a href="#"><i class="fa fa-star-o"></i></a>
										<a href="#"><i class="fa fa-star-o"></i></a>
										<a href="#"><i class="fa fa-star-o"></i></a>
									</div>
								</div>
							</div>
						</div>
					</div>
					<div class="col-md-12">
						<div class="product-wrapper mb-40 mrg-nn-xs">
							<div class="product-img">
								<a href="#"><img src="__ROOT__/Application/Home/Common/img/product/8.jpg" alt="" /></a>
								<span class="new-label">New</span>
								<div class="product-action">
									<a href="#"><i class="pe-7s-cart"></i></a>
									<a href="#"><i class="pe-7s-like"></i></a>
									<a href="#"><i class="pe-7s-folder"></i></a>
									<a href="#" data-toggle="modal" data-target="#productModal"><i class="pe-7s-look"></i></a>
								</div>
							</div>
							<div class="product-content">
								<div class="pro-title">
									<h3><a href="product-details.html">Cras Neque Metus</a></h3>
								</div>
								<div class="price-reviews">
									<div class="price-box">
										<span class="price product-price">$262.00</span>
										<span class="old-price product-price">$262.00</span>
									</div>
									<div class="pro-rating">
										<a href="#"><i class="fa fa-star-o"></i></a>
										<a href="#"><i class="fa fa-star-o"></i></a>
										<a href="#"><i class="fa fa-star-o"></i></a>
										<a href="#"><i class="fa fa-star-o"></i></a>
										<a href="#"><i class="fa fa-star-o"></i></a>
									</div>
								</div>
							</div>
						</div>
					</div>
					<div class="col-md-12">
						<div class="product-wrapper mb-40 mrg-nn-xs">
							<div class="product-img">
								<a href="#"><img src="__ROOT__/Application/Home/Common/img/product/7.jpg" alt="" /></a>
								<span class="new-label">New</span>
								<div class="product-action">
									<a href="#"><i class="pe-7s-cart"></i></a>
									<a href="#"><i class="pe-7s-like"></i></a>
									<a href="#"><i class="pe-7s-folder"></i></a>
									<a href="#" data-toggle="modal" data-target="#productModal"><i class="pe-7s-look"></i></a>
								</div>
							</div>
							<div class="product-content">
								<div class="pro-title">
									<h3><a href="product-details.html">Cras Neque Metus</a></h3>
								</div>
								<div class="price-reviews">
									<div class="price-box">
										<span class="price product-price">$262.00</span>
										<span class="old-price product-price">$262.00</span>
									</div>
									<div class="pro-rating">
										<a href="#"><i class="fa fa-star-o"></i></a>
										<a href="#"><i class="fa fa-star-o"></i></a>
										<a href="#"><i class="fa fa-star-o"></i></a>
										<a href="#"><i class="fa fa-star-o"></i></a>
										<a href="#"><i class="fa fa-star-o"></i></a>
									</div>
								</div>
							</div>
						</div>
					</div>
					<div class="col-md-12">
						<div class="product-wrapper mb-40 mrg-nn-xs">
							<div class="product-img">
								<a href="#"><img src="__ROOT__/Application/Home/Common/img/product/3.jpg" alt="" /></a>
								<span class="new-label">New</span>
								<div class="product-action">
									<a href="#"><i class="pe-7s-cart"></i></a>
									<a href="#"><i class="pe-7s-like"></i></a>
									<a href="#"><i class="pe-7s-folder"></i></a>
									<a href="#" data-toggle="modal" data-target="#productModal"><i class="pe-7s-look"></i></a>
								</div>
							</div>
							<div class="product-content">
								<div class="pro-title">
									<h3><a href="product-details.html">Cras Neque Metus</a></h3>
								</div>
								<div class="price-reviews">
									<div class="price-box">
										<span class="price product-price">$262.00</span>
										<span class="old-price product-price">$262.00</span>
									</div>
									<div class="pro-rating">
										<a href="#"><i class="fa fa-star-o"></i></a>
										<a href="#"><i class="fa fa-star-o"></i></a>
										<a href="#"><i class="fa fa-star-o"></i></a>
										<a href="#"><i class="fa fa-star-o"></i></a>
										<a href="#"><i class="fa fa-star-o"></i></a>
									</div>
								</div>
							</div>
						</div>
					</div>
					<div class="col-md-12">
						<div class="product-wrapper mb-40 mrg-nn-xs">
							<div class="product-img">
								<a href="#"><img src="__ROOT__/Application/Home/Common/img/product/7.jpg" alt="" /></a>
								<span class="new-label">New</span>
								<div class="product-action">
									<a href="#"><i class="pe-7s-cart"></i></a>
									<a href="#"><i class="pe-7s-like"></i></a>
									<a href="#"><i class="pe-7s-folder"></i></a>
									<a href="#" data-toggle="modal" data-target="#productModal"><i class="pe-7s-look"></i></a>
								</div>
							</div>
							<div class="product-content">
								<div class="pro-title">
									<h3><a href="product-details.html">Cras Neque Metus</a></h3>
								</div>
								<div class="price-reviews">
									<div class="price-box">
										<span class="price product-price">$262.00</span>
										<span class="old-price product-price">$262.00</span>
									</div>
									<div class="pro-rating">
										<a href="#"><i class="fa fa-star-o"></i></a>
										<a href="#"><i class="fa fa-star-o"></i></a>
										<a href="#"><i class="fa fa-star-o"></i></a>
										<a href="#"><i class="fa fa-star-o"></i></a>
										<a href="#"><i class="fa fa-star-o"></i></a>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>						
			</div>
		</div>
	</div>
	<!-- best-sell-area end -->	
	<!-- brand-area start -->
	</block>
   
    <block name="script">
    <script type="text/javascript">
    	$(function(){
    		$(".spic").click(function(){
    			$(".bpic").attr('src',$(this).attr('src'));
    		});
    	});
        $(function(){
        	$(".shoppcart").click(function(){
        		 var user = $(".user").val();
        		 var did = $(".addid").val();
        		 var count = $(".count").val();
                 $.post("{:U(dindan)}",{did:did,count:count,user:user},
                 	function(data){
                 	   if(data.status==1){
                 	   	   $(".tishi").nextAll().remove();
                           $(".tishi").after(data.data);
                 	   }
                        
                 });
        	});
        });

    $(function(){
 	    $(".uck2").click(function(){
			  layer.open({
			  type: 1,
			  shade:0,
			  skin: 'layui-layer-rim', //加上边框
			  area: ['450px', '400px'], //宽高
			  content: $(".disnoe")
		});
    });
 });
    </script>
    </block>	

